package com.y.architecture.base_refresh;

import android.os.Bundle;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.View;

import com.y.architecture.base.IBaseContact;

/**
 * Created by youjingjing on 2017/11/24.
 */

public class IBaseRefreshContact {
    public interface IBaseRefreshView extends IBaseContact.IBase  {
        void initRefresh(Bundle saveInstanceStatus);
//        void initLoad( );

        int getRefreshId();
//        int getLoadProgressId();

        void setRefreshHeader();
//        void setLoadProgress();

        SwipeRefreshLayout getRefreshLayout();

        void autoRefresh();
//        void autoLoad();
        void refreshComplete();
//        void loadComplete();

        void onRefreshBegin(SwipeRefreshLayout frame);
//        void onLoadBegin(SpinKitView frame);
    }

    public interface IBaseRefreshPresenter extends IBaseContact.IPresenter{
        SwipeRefreshLayout initRefreshLayout();

//        SpinKitView initLoadProgress();

//        int getDefaultProgressId();

        void setRefreshHeader();
//        void setLoadProgress();


//        void autoLoad();

//        void loadComplete();

        boolean checkCanDoRefresh(SwipeRefreshLayout layout, View content, View header);
    }
}
